import { reqSearchData } from '@/api'

export default {
  usenamespaced: true,
  state: {
    searchData: [],
  },
  actions: {
    getSearchData: async ({ commit }, params = {}) => commit('SEARCH_DATA', await reqSearchData(params)),

  },
  mutations: {
    SEARCH_DATA: (context, data) => context.searchData = data,
  },
  getters: {}
}